package com.tt.fashionWebSite.dto;

import com.tt.fashionWebSite.domain.ChiTietSanPham;

import java.io.Serializable;
import java.util.List;

/**
 * Created by 10520_000 on 11/2/14.
 */
public class SanPhamFullDto implements Serializable {
   private String maSP;
   private LoaiDanhMucSanPhamDto loaiDanhMucSanPham;
   private String tenSP;
   private String thongTin;
   private String doiTuong;
   private List<ChiTietSanPhamFullDto> chiTietSanPhams;
   private List<KichThuocDto> size;
   private List<MauSacDto> mauSac;

   public SanPhamFullDto() {}
   public SanPhamFullDto(Object[] sanPhamInfo) {
      if (sanPhamInfo[0] != null) {
         this.maSP = (String) sanPhamInfo[0];
      }

      if (sanPhamInfo[1] != null) {
         this.tenSP = (String) sanPhamInfo[1];
      }

      if (sanPhamInfo[2] != null) {
         this.thongTin = (String) sanPhamInfo[2];
      }
   }

   public String getMaSP() {
      return maSP;
   }

   public void setMaSP(String maSP) {
      this.maSP = maSP;
   }

   public LoaiDanhMucSanPhamDto getLoaiDanhMucSanPham() {
      return loaiDanhMucSanPham;
   }

   public void setLoaiDanhMucSanPham(LoaiDanhMucSanPhamDto loaiDanhMucSanPham) {
      this.loaiDanhMucSanPham = loaiDanhMucSanPham;
   }

   public String getTenSP() {
      return tenSP;
   }

   public void setTenSP(String tenSP) {
      this.tenSP = tenSP;
   }

   public String getThongTin() {
      return thongTin;
   }

   public void setThongTin(String thongTin) {
      this.thongTin = thongTin;
   }

   public String getDoiTuong() {
      return doiTuong;
   }

   public void setDoiTuong(String doiTuong) {
      this.doiTuong = doiTuong;
   }

   public List<ChiTietSanPhamFullDto> getChiTietSanPhams() {
      return chiTietSanPhams;
   }

   public void setChiTietSanPhams(List<ChiTietSanPhamFullDto> chiTietSanPhams) {
      this.chiTietSanPhams = chiTietSanPhams;
   }

   public List<KichThuocDto> getSize() {
      return size;
   }

   public void setSize(List<KichThuocDto> size) {
      this.size = size;
   }

   public List<MauSacDto> getMauSac() {
      return mauSac;
   }

   public void setMauSac(List<MauSacDto> mauSac) {
      this.mauSac = mauSac;
   }
}
